package com.dd.common.exception;

import com.dd.common.entity.ResultCode;

/**
 * 自定义请求参数异常
 */
public class RequestParamException extends RuntimeException {

    /**
     * 异常编码
     */
    private ResultCode resultCode ;

    /**
     * 错误字段名称
     */
    private String field;

    public RequestParamException(ResultCode resultCode,String field){
        this.field = field;
        this.resultCode = resultCode;
    }

    public ResultCode getResultCode() {
        return resultCode;
    }

    public void setResultCode(ResultCode resultCode) {
        this.resultCode = resultCode;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }
}
